package pasantias.Dominio;

public class Dot implements Figura{
	
	private final int x;
	private final int y;
	
	public Dot(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	@Override
	public String toString() {
		return x + " " + y;
	}

	@Override
	public void accept(FiguresVisitor visitor) {
		visitor.visit(this);
	}

}
